<template>
<div><button class="back">←后退</button>
  <button class="forward">前进→</button></div>
</template>

<script>
export default {

}
const forward = document.querySelector('.forward')
    forward.addEventListener('click', function () {
      // history.forward() 
      history.go(1)
    })
    const back = document.querySelector('.back')
    back.addEventListener('click', function () {
      // history.back()
      history.go(-1)
    })
</script>

<style>

</style>